package com.imooc.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *   Http 请求 返回最外层对象
 * Created by ancy on 2017/7/8.
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Result <T>{

    // 状态码
    private Integer code;

    // 提示的信息
    private String msg;

    // 具体的内容
    private T  data;

//    public   Result <T> success ( ) {
//        Result<T> result = new Result<>();
//    }

}
